export default ({
  service,
  request,
  serviceForMock,
  requestForMock,
  mock,
  faker,
  tools,
}) => ({
  /**
   * @description 登录
   * @param {Object} data 登录携带的信息
   */
  STOCK_LIST(data = {}) {
    return request({
      url: '/store/stock/pageList',
      method: 'post',
      data,
    })
  },
  STOCK_FLOW_LIST(data = {}) {
    return request({
      url: '/store/stock/io/pageList',
      method: 'post',
      data,
    })
  },
  STOCK_DELIVERY_LIST(data = {}) {
    return request({
      url: '/store/stock/delivery-bill/pageList',
      method: 'post',
      data,
    })
  },
  STOCK_DELIVERY_CANCEL(params = {}) {
    return request({
      url: '/store/stock/delivery-bill/cancel',
      method: 'get',
      params,
    })
  },
  STOCK_PURCHASE_LIST(data = {}) {
    return request({
      url: '/store/purchase-bill/pageList',
      method: 'post',
      data,
    })
  },
  STOCK_PURCHASE_CANCEL(params = {}) {
    return request({
      url: '/store/purchase-bill/cancel',
      method: 'get',
      params,
    })
  },
  STOCK_PURCHASE_AGENT(params = {}) {
    return request({
      url: '/store/purchase-bill/agent-list',
      method: 'get',
      params,
    })
  },
  STOCK_PURCHASE_STORE(params = {}) {
    return request({
      url: '/store/purchase-bill/first-store-list',
      method: 'get',
      params,
    })
  },
  STOCK_PURCHASE_SUPPLIER(data = {}) {
    return request({
      url: '/store/purchase-bill/supplier-list',
      method: 'post',
      data,
    })
  },
  STOCK_PURCHASE_PAGE(data = {}) {
    return request({
      url: '/store/purchase-bill/supplier-page',
      method: 'post',
      data,
    })
  },
  addPurchaseSupplier(data = {}) {
    return request({
      url: '/store/purchase-bill/supplier-add',
      method: 'post',
      data,
    })
  },
  editPurchaseSupplier(data = {}) {
    return request({
      url: '/store/purchase-bill/supplier-update',
      method: 'post',
      data,
    })
  },
  STOCK_PURCHASE_SKULIST(data = {}) {
    return request({
      url: '/store/purchase-bill/sku-select-list',
      method: 'post',
      data,
    })
  },
  STOCK_PURCHASE_ADD(data = {}) {
    return request({
      url: '/store/purchase-bill/add',
      method: 'post',
      data,
    })
  },
  STOCK_PURCHASE_UPDATE(data = {}) {
    return request({
      url: '/store/purchase-bill/update',
      method: 'post',
      data,
    })
  },
  STOCK_PURCHASE_UPDATE_STATUS(data = {}) {
    return request({
      url: '/store/purchase-bill/operateBillStatus',
      method: 'post',
      data,
    })
  }
})
